/*
表格字段
 */


import {reactive} from "vue";
import moment from "moment/moment";
export const AddTableColumns = [
    {
        title: 'ID' ,
        dataIndex: 'id',
        key: 'id',
    },
    {
        title: '教师姓名',
        dataIndex: 'teacherName',
        key: 'teacherName',
    },
    {
        title: '实验室编号',
        key: 'labNumber',
        dataIndex: 'labNumber',
    },
    {
        title:'申请描述',
        key:'applicationDescription',
        dataIndex:'applicationDescription',
    },
    {
        title:'申请日期',
        key:'repairDate',
        dataIndex:'repairDate',
    },
    {
        title: '申请状态',
        key: 'status',
        dataIndex:'status',
    },
    {
        title: '维修描述',
        key: 'completionDescription',
        dataIndex:'completionDescription',
    },

];
//搜索栏
export const RepairAddSearchColumns = [
    {
        label: '实验室编号',
        name: 'labNumber',
        rules: [{ required: false }],
        inputType: 'input',
        placeHolder: '请选择实验室号'
    },
    {
        label: '申请状态',
        name: 'status',
        rules: [{ required: false}],
        inputType: 'input',
        placeHolder: "请输入申请状态"
    },

];

/*
    弹窗表单字段
    rules:[{ type: 'email' }]***[{ required: true }]****[{ type: 'number', min: 0, max: 99 }]
    imputType:input****input-number****textarea
 */
export const formFields =reactive( [
    {
        title:"实验室编号",
        key: 'labNumber',
        rules: [{ required: true }],
        inputType: 'input'
    },
    {
        title: "故障描述",
        key: 'applicationDescription',
        rules: [{ min: 10, message: '最少要输入10个字符' }],
        inputType: 'textarea'
    },
]);

